package cn.tuning.controller;


import cn.tuning.entity.RiderInfo;
import cn.tuning.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author LonelyLeo
 * @date 2021-08-02 23:44
 */
@RestController
public class TestController {

    @Autowired
    private TestService testService;

    @GetMapping("/queryAll")
    public List<RiderInfo> queryAll(){
        List<RiderInfo> riderInfos = this.testService.queryAll();
        return riderInfos;
    }
}
